package ddz;

import java.awt.*;
import java.applet.*;
import java.net.URL;

import javax.swing.*;

public class Resources {
	public static Image ROOM_IMAGE = new ImageIcon("View\\table.jpg")
			.getImage(), RED_HEART_IMAGE = new ImageIcon("View\\heart.png")
			.getImage(), BLACK_HEART_IMAGE = new ImageIcon(
			"View\\blackHeart.png").getImage(), FLOWER_IMAGE = new ImageIcon(
			"View\\flower.png").getImage(), SQUARE_IMAGE = new ImageIcon(
			"View\\square.png").getImage(), BACKGROUND_IMAGE = new ImageIcon(
			"View\\background.jpg").getImage(), JAVA_IMAGE = new ImageIcon(
			"View\\java.jpg").getImage(),
			Q_IMAGE = new ImageIcon("View\\q.jpg").getImage(),
			K_IMAGE = new ImageIcon("View\\k.jpg").getImage(),
			JOKER_IMAGE = new ImageIcon("View\\joker.jpg").getImage();

	public static ImageIcon SAMPLE_HEAD = new ImageIcon("View\\faces\\1-1.jpg"),
			SAMPLE_HEAD2 = new ImageIcon("View\\faces\\2-1.jpg"),
			SAMPLE_HEAD3 = new ImageIcon("View\\faces\\3-1.jpg"),
			SAMPLE_HEAD4 = new ImageIcon("View\\faces\\4-1.jpg"),
			DZICON = new ImageIcon("View\\dz.gif");

	public static AudioClip SEND_MUSIC, NO_MUSIC, SELECT_MUSIC;

	static {
		try {
			SEND_MUSIC = Applet.newAudioClip(new URL("file:send.mid"));
			SELECT_MUSIC = Applet.newAudioClip(new URL("file:select.mid"));
			NO_MUSIC = Applet.newAudioClip(new URL("file:buyao-1.mid"));
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
